<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/public/include/taglib.jsp"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<!DOCTYPE html>
<html>
<head>
<title><sitemesh:title /></title>
<%@include file="/WEB-INF/views/public/include/head.jsp"%>
<script src="${pluginsPath}/jquery/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
<script src="${basePath}/static/rock/js/util.js" type="text/javascript"></script>
<script type="text/javascript">
		$(document).ready(function() {
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					}else if(element.attr("data-error-container")) { 
	                    error.appendTo(element.attr("data-error-container"));
					} else {
						error.insertAfter(element);
					}
				}			
			});
		});
	</script>
<sitemesh:head />
</head>
<body>
	<sitemesh:body />
</body>
</html>